import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    profilePhoto: 'https://tse1-mm.cn.bing.net/th/id/OIP-C.9gV8vPG0QdYYH7R6d2NPFAAAAA?w=190&h=190&c=7&r=0&o=5&dpr=1.38&pid=1.7'
  },
  getters: {
  },
  mutations: {
    // 设置头像
    SET_PHOTO (state, value) {
      state.profilePhoto = value
    }
  },
  actions: {
  },
  modules: {
  }
})
